<?php
/**
 * Represents a location on the map.
 *
 * @author Mark Dohmen.
 */
final class Location {
	
	/**
	 * The absolute X position.
	 */
	final private $absX;
	
	/**
	 * The absolute Y position;
	 */
	final private $absY;
	
	/**
	 * Class Constructor..
	 *
	 * @param $absX
	 * @param $absY
	 */
	final public function Location(int $absX, int $absY) {
		$this->absX = $absX;
		$this->absY = $absY;	
	}
	
	/**
	 * Gets the X position.
	 *
	 * @return $absX
	 */
	final public function getPosX() {
		return (int) $this->absX;	
	}
	
	/**
	 * Gets the Y position.
	 *
	 * @return $absY
	 */
	final public function getPosY() {
		return (int) $this->absY;	
	}
}
?>